import {BasicColumn, FormSchema} from "/@/components/Table";

export const columns:BasicColumn[] = [
  {
    title:'用户id',
    dataIndex:'userId',
    width:120,
  },
  {
    title:'用户请求地址',
    dataIndex:'requestUrl',
    width:120,
  },{
    title:'访问模块',
    dataIndex:'moduleName',
    width:120,
  },
  {
    title:'方法类型',
    dataIndex:'methodName',
    width:120,
  },
  {
    title:'描述信息',
    dataIndex:'description',
    width:120,
  },
]
export const simplyColumns:BasicColumn[] = [

  {
    title:'用户请求地址',
    dataIndex:'requestUrl',
    width:120,
  },{
    title:'访问模块',
    dataIndex:'moduleName',
    width:120,
  },
  {
    title:'方法类型',
    dataIndex:'methodName',
    width:120,
  },
  {
    title:'描述信息',
    dataIndex:'description',
    width:120,
  },
  {
    title:'访问时间',
    dataIndex:'gmtCreate',
    width:120,
  },
  {
    title:'访问结果',
    dataIndex:'state',
    width:120,
  },
]
export const searchFormSchema:FormSchema[]=[
  {
    field:'moduleName',
    label:'模块名',
    component:'Input',
    colProps:{span:8}
  },
  {
    field:'methodName',
    label:'方法类型',
    component:'Select',
    componentProps:{
      options:[
        {
          label:'查询',
          value:'查询'
        },
        {
          label:'更新',
          value:'更新'
        },
        {
          label:'新增',
          value:'新增'
        },
        {
          label:'删除',
          value:'删除'
        },
      ]
    },
    colProps:{span:8}
  }
]

